package com.peas.platform.module.icims.base.approve.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("审批模版")
public class ApproveVo extends BaseVo {

    @Comment(value = "审批模版类型", enumType = "ApproveType")
    @ApiModelProperty(value = "审批模版类型", notes = "枚举取值:ApproveType")
    @NotBlank(message = "审批模版类型不能为空")
    @Size(max = 20, message = "审批模版类型不能超过20个字符")
    private String approveType;

    @Comment(value = "审批模版编码")
    @ApiModelProperty(value = "审批模版编码")
    @Size(max = 100, message = "审批模版编码不能超过100个字符")
    private String approveCode;

    @Comment(value = "审批模版名称")
    @ApiModelProperty(value = "审批模版名称")
    @NotBlank(message = "审批模版名称不能为空")
    @Size(max = 200, message = "审批模版名称不能超过200个字符")
    private String approveName;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    // 【组织架构表】
    @Comment(value = "所属部门")
    @ApiModelProperty(value = "所属部门")
    private Long organizationId;

    // 【用户表】
    @Comment(value = "所属用户")
    @ApiModelProperty(value = "所属用户")
    private Long userId;

    @Comment(value = "系统模块", enumType = "Module")
    @ApiModelProperty(value = "系统模块", notes = "枚举取值:Module")
    @Size(max = 20, message = "系统模块不能超过20个字符")
    private String module;

    @Comment(value = "业务模块", enumType = "ApproveBusiness")
    @ApiModelProperty(value = "业务模块", notes = "枚举取值:ApproveBusiness")
    @Size(max = 20, message = "业务模块不能超过20个字符")
    private String business;

    @Comment(value = "权重")
    @ApiModelProperty(value = "权重")
    private Integer weight;

}
